package com.tencent.qf.team.dto.response;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class GuiderShareStatisticResponse {
    //总分享次数
    private Integer totalShareCount = 0;
    //goods分享次数
    private Integer totalGoodsShareCount = 0;
    //专题分享次数
    private Integer totalTopicShareCount = 0;
    //活动分享次数
    private Integer totalActivityShareCount = 0;
    //其他分享次数
    private Integer totalOtherShareCount = 0;
    //笔记分享次数
    private Integer totalNotesShareCount = 0;
    //好物清单分享次数
    private Integer totalItemShareCount = 0;

    //分享曲线图数据
    private List<CountList> shareCountList = new ArrayList<>();
    //spu分享曲线图数据
    private List<CountList> goodsShareCountList = new ArrayList<>();
    //专题分享曲线图数据
    private List<CountList> topicShareCountList = new ArrayList<>();
    //活动分享曲线图数据
    private List<CountList> activityShareCountList = new ArrayList<>();
    //其他分享曲线图数据
    private List<CountList> otherShareCountList = new ArrayList<>();
    //笔记分享曲线图数据
    private List<CountList> notesShareCountList = new ArrayList<>();
    //好物清单曲线图数据
    private List<CountList> itemShareCountList = new ArrayList<>();

    @Data
    public static class CountList {
        //曲线图时间点2022-05-19 16:00:00
        private String key;
        //曲线图数值
        private Integer value;
        //曲线图时间范围
        //["2022-05-19 16:00:00","2022-05-19 23:59:59"]
        private String[] keyRange;

        public CountList() {
        }

        public CountList(String key, Integer value, String[] keyRange) {
            this.key = key;
            this.value = value;
            this.keyRange = keyRange;
        }
    }
}
